#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int mian()
{
    int n5, n2=1, n1;
    int money;
    int flag;
    int count = 0;
    flag = 1;
    scanf("%d", &money);
    if (money > 8 && money < 100)
    {
        for (n5 = money / 5; (n5 >= 1) && (flag == 1); n5--)
        {
            for (n5 = (money - n5 * 5) / 2; (n2 >= 1) && (flag == 1); n2--)
            {
                for (n1 = money - n5 - n2; (n1 >= 1) && (flag == 1); n1--)
                {
                    if (n1 + n2 * 2 + n5 * 5 == money)
                    {
                        count++;
                        printf("fen5:%d, fen2:%d, fen1:%d, total%d\n", n5, n2, n1, n5 + n2 + n1);
                    }
                }
            }
        }
    }
    printf("count = %d", count);
    return 0;
}